<?php
	function get_component_content()
	{
		$op = $_GET['option'];
		if (!isset($op) || $op == '')
			$op = 'com_content';
		if (isset($op))
		{
			$name = substr($op, 4);
			require_once('component/'.$name.'/index.php');
			$className = $op;
			$con = new $className;
			$con->get_content();	
		}
	}
	
	abstract class component
	{
		protected $option;
		protected $view;
		protected $layout;
		protected $id;
		protected $page;
		abstract protected function get_content();
	}
?>